﻿@using SmartCode
@model BuildContext
@{
    var project = Model.Project;
    var smartsqlVersion = "4.0.42";
    if (project.Parameters.Value("SmartSqlVersion", out string version))
    {
        smartsqlVersion = version;
    }
}
<Project Sdk="Microsoft.NET.Sdk.Web">
    <PropertyGroup>
        <TargetFramework>netcoreapp2.2</TargetFramework>
    </PropertyGroup>

    <ItemGroup>
        <PackageReference Include="SmartSql.DIExtension" Version="@smartsqlVersion" />
        <PackageReference Include="Swashbuckle.AspNetCore" Version="4.0.1" />
    </ItemGroup>

    <ItemGroup>
        <PackageReference Include="Microsoft.AspNetCore.App" />
    </ItemGroup>
    <ItemGroup>
        <ProjectReference Include="..\@(project.Module).Entity\@(project.Module).Entity.csproj" />
        <ProjectReference Include="..\@(project.Module).Repository\@(project.Module).Repository.csproj" />
        <ProjectReference Include="..\@(project.Module).Service\@(project.Module).Service.csproj" />
    </ItemGroup>
    
</Project>
